#import "ArtistryNaturalController.h"
        
#import "ArtistryNaturalModel.h"
#import "ArtistryNaturalCell.h"
#import "Masonry.h"

@interface ArtistryNaturalController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *graciousCollectionView;
@property (nonatomic, strong) NSMutableArray *opulentJewelZealModels;

@end

@implementation ArtistryNaturalController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self clarityConfiglayout];
	[self echoesgetData];
}


//: 懒加载数据模型数组
- (NSMutableArray *)opulentJewelZealModels {
	if (!_opulentJewelZealModels) {
		_opulentJewelZealModels = [NSMutableArray array];
	}
	return _opulentJewelZealModels;
}

//: 获取数据模型
- (void)echoesgetData {
	
}

- (void)clarityConfiglayout {
    UICollectionViewFlowLayout *yardMagnitude = [[UICollectionViewFlowLayout alloc] init];
    yardMagnitude.minimumLineSpacing = 10;
    yardMagnitude.minimumInteritemSpacing = 10;
    yardMagnitude.itemSize = CGSizeMake(100, 100);
    yardMagnitude.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.graciousCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:yardMagnitude];
    self.graciousCollectionView.backgroundColor = UIColor.clearColor;
    self.graciousCollectionView.delegate = self;
    self.graciousCollectionView.dataSource = self;
    self.graciousCollectionView.showsHorizontalScrollIndicator = NO;
    self.graciousCollectionView.showsVerticalScrollIndicator = NO;
    [self.graciousCollectionView registerClass:[ArtistryNaturalCell class] forCellWithReuseIdentifier:NSStringFromClass([ArtistryNaturalCell class])];
    
    [self.view addSubview:self.graciousCollectionView];
    [self.graciousCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.opulentJewelZealModels.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    ArtistryNaturalCell *yawnMingleGraceful = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([ArtistryNaturalCell class]) forIndexPath:indexPath];
    return yawnMingleGraceful;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
